#include<iostream>
using namespace std;
#include<string>
#include<fstream>
#include<time.h>
#include<vector>

int main(){

	int i,j,n=1E6;
	double x;
	srand(time(NULL));

	int count[10]; for(i=0;i<10;i++)count[i]=0;

	for(i=0;i<n;i++){
		x = (double)rand()/RAND_MAX;
		j = (int)(x/0.1);
		if(j<10) count[ j ] ++;
	}
	ofstream fout("exe2.txt");
	for(i=0;i<10;i++) fout<<(double)count[i]/1E6<<endl;
	fout.close();
	return 0;
}
